package io.renren.modules.pms.service;

import com.baomidou.mybatisplus.extension.service.IService;
import io.renren.common.entity.GoodsInfoEntity;
import io.renren.common.utils.PageUtils;
import io.renren.modules.pms.dto.GoodsInfoDTO;
import io.renren.modules.pms.vo.GoodsInfoVO;

import java.util.List;
import java.util.Map;

/**
 * 商品表
 *
 * @author Mark
 * @email sunlightcs@gmail.com
 * @date 2024-08-13 15:18:06
 */
public interface GoodsInfoService extends IService<GoodsInfoEntity> {

    PageUtils queryPage(Map<String, Object> params);

    GoodsInfoVO getInfoById(Long id);

    void deleteBatchIds(List<Integer> ids);

    void updateInfo(GoodsInfoDTO goodsInfoDTO);

    /**
     * @param id id
     * @param status 商品状态
     */
    void startOrStop(Long id, Integer status);
}

